<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>管理员修改界面</title>
    <script src="../js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript">
        function update(){
            $.post("../admin/updatePwd",$("#updateForm").serialize(),function (res){
                if (res.code == 201 ||res.code == 500) {
                    alert(res.msg);
                }else {
                    alert(res.msg);
                    window.parent.location.replace("success.html");
                }
            },"json");
        }
    </script>
</head>
<body>
<form id="updateForm">
    新密码：<input name="password" placeholder="密码" type="password"><br>
    <input value="修改提交" type="button" onclick="update()">
</form>
</body>
</html>
